package com.thoughtworks.biblioteca.model;


import java.util.ArrayList;
import java.util.List;


public class Menu {

    private List<MenuItem> menuItems;

    public Menu(List<MenuItem> menuItems) {
        this.menuItems = menuItems;
    }

    public Menu() {
        menuItems = new ArrayList<MenuItem>();
    }

    public List<MenuItem> getMenuItems() {
        return menuItems;
    }

    public void addItem(MenuItem item) {
        menuItems.add(item);
    }

    public void setMenuItems(List<MenuItem> menuItems) {
        this.menuItems = menuItems;
    }
}
